<!-- XHTML 1.0 Strict -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<meta name="author" content="Rachid Touzani" />
<meta name="keywords" content=" css, dropdowns, dropdown menu, drop-down, menu, navigation, nav, horizontal, vertical left-to-right, vertical right-to-left, horizontal linear, horizontal upwards, cross browser, internet explorer, ie, firefox, safari, opera, browser, lwis" />
<meta name="description" content="Clean, standards-friendly, modular framework for dropdown menus" />
<link href="../css/dropdown.vertical.css" media="screen" rel="stylesheet" type="text/css" />
<link href="../css/default.ultimate.css" media="screen" rel="stylesheet" type="text/css" />
<head>
<!-- Title -->
<title>OFELI - Documentation</title>
<!-- Stylesheet -->
<link rel="stylesheet" type="text/css" href="../doxygen.css" />
<link rel="stylesheet" type="text/css" href="../tabs.css" />
</head>
<body>
<p align="center">
  <img src="../im/ofeli.gif" alt="OFELI's Logo" width="300" height="90">
</p>
<p align="center"><font color="#203F5B" size="4" face="verdana,Helvetica">
<b>An Object Oriented Finite Element Library</b></font></p>
<!-- Complete Page-->
<div id="main">
<div id="mainmenu">
 <div class="text">
<!-- Menu -->
 <div class="tabs">
  <ul class="tablist">
   <li><a href="../index.html"><span>Home</span></a>
    <li><a href="../overview.html"><span>Overview</span></a>
    <li><a href="../extlib.html"><span>External Libraries</span></a>
    <li><a href="../citing.html"><span>Citing OFELI</span></a>
    <li><a href="../fformats.html"><span>File Formats</span></a>
    <li><a href="../demos.html"><span>Demo Codes</span></a>
  </ul>
 </div>
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('structOFELI_1_1Point.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classOFELI_1_1Point-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Point&lt; T_ &gt; Class Template Reference<div class="ingroups"><a class="el" href="group__OFELI.html">OFELI</a><a class="el" href="group__OFELI.html">OFELI</a> &raquo;  &#124; <a class="el" href="group__Util.html">Utilities</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Defines a point with arbitrary type coordinates.  
 <a href="structOFELI_1_1Point.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae08c5f0c5b4c75a3e0f33dada5f2fcba"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae08c5f0c5b4c75a3e0f33dada5f2fcba"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#ae08c5f0c5b4c75a3e0f33dada5f2fcba">Point</a> ()</td></tr>
<tr class="memdesc:ae08c5f0c5b4c75a3e0f33dada5f2fcba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor. <br /></td></tr>
<tr class="separator:ae08c5f0c5b4c75a3e0f33dada5f2fcba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a111944170c34f6c9322b0f8a3a3fa5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#a0a111944170c34f6c9322b0f8a3a3fa5">Point</a> (T_ a, T_ <a class="el" href="group__OFELI.html#gaf5cd2eaaceda19772fd904539819158c">b</a>=T_(0), T_ c=T_(0))</td></tr>
<tr class="memdesc:a0a111944170c34f6c9322b0f8a3a3fa5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor that assigns <code>a</code>, <code>b</code> to <code>x</code>-, <code>y</code>- and <code>z</code>-coordinates respectively.  <a href="#a0a111944170c34f6c9322b0f8a3a3fa5">More...</a><br /></td></tr>
<tr class="separator:a0a111944170c34f6c9322b0f8a3a3fa5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45c9461a79a79f8d1b8048153bcb1690"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a45c9461a79a79f8d1b8048153bcb1690"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#a45c9461a79a79f8d1b8048153bcb1690">Point</a> (const <a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; T_ &gt; &amp;p)</td></tr>
<tr class="memdesc:a45c9461a79a79f8d1b8048153bcb1690"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor. <br /></td></tr>
<tr class="separator:a45c9461a79a79f8d1b8048153bcb1690"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7fb7738730bfcc21b07ede2b6137fc9"><td class="memItemLeft" align="right" valign="top">T_ &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#ad7fb7738730bfcc21b07ede2b6137fc9">operator()</a> (size_t i)</td></tr>
<tr class="memdesc:ad7fb7738730bfcc21b07ede2b6137fc9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Operator <code>()</code>: Non constant version.  <a href="#ad7fb7738730bfcc21b07ede2b6137fc9">More...</a><br /></td></tr>
<tr class="separator:ad7fb7738730bfcc21b07ede2b6137fc9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad508121b8909613214d8447ed092de3c"><td class="memItemLeft" align="right" valign="top">const T_ &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#ad508121b8909613214d8447ed092de3c">operator()</a> (size_t i) const </td></tr>
<tr class="memdesc:ad508121b8909613214d8447ed092de3c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Operator <code>()</code>: Constant version.  <a href="#ad508121b8909613214d8447ed092de3c">More...</a><br /></td></tr>
<tr class="separator:ad508121b8909613214d8447ed092de3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8375edb31334b3bc1ff42de8894d26cd"><td class="memItemLeft" align="right" valign="top">T_ &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#a8375edb31334b3bc1ff42de8894d26cd">operator[]</a> (size_t i)</td></tr>
<tr class="memdesc:a8375edb31334b3bc1ff42de8894d26cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Operator <code>[]</code>: Non constant version.  <a href="#a8375edb31334b3bc1ff42de8894d26cd">More...</a><br /></td></tr>
<tr class="separator:a8375edb31334b3bc1ff42de8894d26cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af86fe4462e10dfb272444bd196572f5e"><td class="memItemLeft" align="right" valign="top">const T_ &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#af86fe4462e10dfb272444bd196572f5e">operator[]</a> (size_t i) const </td></tr>
<tr class="memdesc:af86fe4462e10dfb272444bd196572f5e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Operator <code>[]</code>: Constant version.  <a href="#af86fe4462e10dfb272444bd196572f5e">More...</a><br /></td></tr>
<tr class="separator:af86fe4462e10dfb272444bd196572f5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08f079774549a44b91b3d8cc6333d510"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; T_ &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#a08f079774549a44b91b3d8cc6333d510">operator+=</a> (const <a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; T_ &gt; &amp;p)</td></tr>
<tr class="memdesc:a08f079774549a44b91b3d8cc6333d510"><td class="mdescLeft">&#160;</td><td class="mdescRight">Operator <code>+=</code>  <a href="#a08f079774549a44b91b3d8cc6333d510">More...</a><br /></td></tr>
<tr class="separator:a08f079774549a44b91b3d8cc6333d510"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89eace35a067a04a78e6344af691d47f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; T_ &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#a89eace35a067a04a78e6344af691d47f">operator-=</a> (const <a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; T_ &gt; &amp;p)</td></tr>
<tr class="memdesc:a89eace35a067a04a78e6344af691d47f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Operator <code>-=</code>  <a href="#a89eace35a067a04a78e6344af691d47f">More...</a><br /></td></tr>
<tr class="separator:a89eace35a067a04a78e6344af691d47f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af14c8e0bccc4d66024804a589de1eade"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; T_ &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#af14c8e0bccc4d66024804a589de1eade">operator=</a> (const T_ &amp;a)</td></tr>
<tr class="memdesc:af14c8e0bccc4d66024804a589de1eade"><td class="mdescLeft">&#160;</td><td class="mdescRight">Operator <code>=</code>  <a href="#af14c8e0bccc4d66024804a589de1eade">More...</a><br /></td></tr>
<tr class="separator:af14c8e0bccc4d66024804a589de1eade"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa56537f14630a4bd9851362203e559af"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; T_ &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#aa56537f14630a4bd9851362203e559af">operator+=</a> (const T_ &amp;a)</td></tr>
<tr class="memdesc:aa56537f14630a4bd9851362203e559af"><td class="mdescLeft">&#160;</td><td class="mdescRight">Operator <code>+=</code>  <a href="#aa56537f14630a4bd9851362203e559af">More...</a><br /></td></tr>
<tr class="separator:aa56537f14630a4bd9851362203e559af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c868014bf6a1ce3caf5da7167e81e64"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; T_ &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#a9c868014bf6a1ce3caf5da7167e81e64">operator-=</a> (const T_ &amp;a)</td></tr>
<tr class="memdesc:a9c868014bf6a1ce3caf5da7167e81e64"><td class="mdescLeft">&#160;</td><td class="mdescRight">Operator <code>-=</code>  <a href="#a9c868014bf6a1ce3caf5da7167e81e64">More...</a><br /></td></tr>
<tr class="separator:a9c868014bf6a1ce3caf5da7167e81e64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0a834a23783f1cef739e46f08b7de3c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; T_ &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#ad0a834a23783f1cef739e46f08b7de3c">operator*=</a> (const T_ &amp;a)</td></tr>
<tr class="memdesc:ad0a834a23783f1cef739e46f08b7de3c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Operator <code>*=</code>  <a href="#ad0a834a23783f1cef739e46f08b7de3c">More...</a><br /></td></tr>
<tr class="separator:ad0a834a23783f1cef739e46f08b7de3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af20856693cc97ce29fa0983fea0393b8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; T_ &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#af20856693cc97ce29fa0983fea0393b8">operator/=</a> (const T_ &amp;a)</td></tr>
<tr class="memdesc:af20856693cc97ce29fa0983fea0393b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Operator <code>/=</code>  <a href="#af20856693cc97ce29fa0983fea0393b8">More...</a><br /></td></tr>
<tr class="separator:af20856693cc97ce29fa0983fea0393b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6bfbffd75a16c4341412f1de1e1212e8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#a6bfbffd75a16c4341412f1de1e1212e8">operator==</a> (const <a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; T_ &gt; &amp;p)</td></tr>
<tr class="memdesc:a6bfbffd75a16c4341412f1de1e1212e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Operator <code>==</code>  <a href="#a6bfbffd75a16c4341412f1de1e1212e8">More...</a><br /></td></tr>
<tr class="separator:a6bfbffd75a16c4341412f1de1e1212e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa358b827f5cbde84892c00944feecddc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#aa358b827f5cbde84892c00944feecddc">operator!=</a> (const <a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; T_ &gt; &amp;p)</td></tr>
<tr class="memdesc:aa358b827f5cbde84892c00944feecddc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Operator <code>!=</code>  <a href="#aa358b827f5cbde84892c00944feecddc">More...</a><br /></td></tr>
<tr class="separator:aa358b827f5cbde84892c00944feecddc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3974aa3f6c4839507b63ce74f37ee76"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae3974aa3f6c4839507b63ce74f37ee76"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#ae3974aa3f6c4839507b63ce74f37ee76">NNorm</a> () const </td></tr>
<tr class="memdesc:ae3974aa3f6c4839507b63ce74f37ee76"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return squared euclidean norm of vector. <br /></td></tr>
<tr class="separator:ae3974aa3f6c4839507b63ce74f37ee76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ee7eecfcac25d9c4a6693ba1a8da90c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8ee7eecfcac25d9c4a6693ba1a8da90c"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#a8ee7eecfcac25d9c4a6693ba1a8da90c">Norm</a> () const </td></tr>
<tr class="memdesc:a8ee7eecfcac25d9c4a6693ba1a8da90c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return norm (length) of vector. <br /></td></tr>
<tr class="separator:a8ee7eecfcac25d9c4a6693ba1a8da90c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af279e0f0ff720ee54d6733674dfda50a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#af279e0f0ff720ee54d6733674dfda50a">Normalize</a> ()</td></tr>
<tr class="memdesc:af279e0f0ff720ee54d6733674dfda50a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Normalize vector.  <a href="#af279e0f0ff720ee54d6733674dfda50a">More...</a><br /></td></tr>
<tr class="separator:af279e0f0ff720ee54d6733674dfda50a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca7c7740ebb70ba929752b64e23de371"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aca7c7740ebb70ba929752b64e23de371"></a>
<a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#aca7c7740ebb70ba929752b64e23de371">Director</a> (const <a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; double &gt; &amp;p) const </td></tr>
<tr class="memdesc:aca7c7740ebb70ba929752b64e23de371"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return Director (Normalized vector) <br /></td></tr>
<tr class="separator:aca7c7740ebb70ba929752b64e23de371"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaff218598fffb4cd6234600b1e11331b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#aaff218598fffb4cd6234600b1e11331b">isCloseTo</a> (const <a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; double &gt; &amp;a, double toler=<a class="el" href="group__Util.html#gafdb762bd8a6d2684026764bf68a48bd5">OFELI_TOLERANCE</a>) const </td></tr>
<tr class="memdesc:aaff218598fffb4cd6234600b1e11331b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return <code>true</code> if current point is close to instance <code>a</code> (up to tolerance <code>toler</code>)  <a href="#aaff218598fffb4cd6234600b1e11331b">More...</a><br /></td></tr>
<tr class="separator:aaff218598fffb4cd6234600b1e11331b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8b8557aa0edc46215466767988ee8c1"><td class="memItemLeft" align="right" valign="top">T_&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#ae8b8557aa0edc46215466767988ee8c1">operator,</a> (const <a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; T_ &gt; &amp;p) const </td></tr>
<tr class="memdesc:ae8b8557aa0edc46215466767988ee8c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return Dot (scalar) product of two vectors.  <a href="#ae8b8557aa0edc46215466767988ee8c1">More...</a><br /></td></tr>
<tr class="separator:ae8b8557aa0edc46215466767988ee8c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a4333b1040efe8cd32f7c76bfc2269e0d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4333b1040efe8cd32f7c76bfc2269e0d"></a>
T_&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#a4333b1040efe8cd32f7c76bfc2269e0d">x</a></td></tr>
<tr class="memdesc:a4333b1040efe8cd32f7c76bfc2269e0d"><td class="mdescLeft">&#160;</td><td class="mdescRight">First coordinate. <br /></td></tr>
<tr class="separator:a4333b1040efe8cd32f7c76bfc2269e0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4943c75e718fe503722ac7d26c746a6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab4943c75e718fe503722ac7d26c746a6"></a>
T_&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#ab4943c75e718fe503722ac7d26c746a6">y</a></td></tr>
<tr class="memdesc:ab4943c75e718fe503722ac7d26c746a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Second coordinate. <br /></td></tr>
<tr class="separator:ab4943c75e718fe503722ac7d26c746a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28ebcfb48d1adbaee6863174eaeeec7f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a28ebcfb48d1adbaee6863174eaeeec7f"></a>
T_&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOFELI_1_1Point.html#a28ebcfb48d1adbaee6863174eaeeec7f">z</a></td></tr>
<tr class="memdesc:a28ebcfb48d1adbaee6863174eaeeec7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Third coordinate. <br /></td></tr>
<tr class="separator:a28ebcfb48d1adbaee6863174eaeeec7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class T_&gt;<br />
class OFELI::Point&lt; T_ &gt;</h3>

<p>Defines a point with arbitrary type coordinates. </p>
<p>Operators <code>=</code> and <code>()</code> are overloaded.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T_</td><td>Data type (double, float, complex&lt;double&gt;, ...)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section author"><dt>Author</dt><dd>Rachid Touzani </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>GNU Lesser Public License </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a0a111944170c34f6c9322b0f8a3a3fa5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structOFELI_1_1Point.html">Point</a> </td>
          <td>(</td>
          <td class="paramtype">T_&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T_&#160;</td>
          <td class="paramname"><em>b</em> = <code>T_(0)</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T_&#160;</td>
          <td class="paramname"><em>c</em> = <code>T_(0)</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor that assigns <code>a</code>, <code>b</code> to <code>x</code>-, <code>y</code>- and <code>z</code>-coordinates respectively. </p>
<p>Default values for <code>b</code> and <code>c</code> are <code>0</code> </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ad7fb7738730bfcc21b07ede2b6137fc9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">T_&amp; operator() </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Operator <code>()</code>: Non constant version. </p>
<p>Values <code>i = 1, 2, 3</code> correspond to <code>x</code>, <code>y</code> and <code>z</code> respectively </p>

</div>
</div>
<a class="anchor" id="ad508121b8909613214d8447ed092de3c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const T_&amp; operator() </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Operator <code>()</code>: Constant version. </p>
<p>Values <code>i = 1, 2, 3</code> correspond to <code>x</code>, <code>y</code> and <code>z</code> respectively </p>

</div>
</div>
<a class="anchor" id="a8375edb31334b3bc1ff42de8894d26cd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">T_&amp; operator[] </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Operator <code>[]</code>: Non constant version. </p>
<p>Values <code>i = 0, 1, 2</code> correspond to <code>x</code>, <code>y</code> and <code>z</code> respectively </p>

</div>
</div>
<a class="anchor" id="af86fe4462e10dfb272444bd196572f5e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const T_&amp; operator[] </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Operator <code>[]</code>: Constant version. </p>
<p>Values <code>i = 0, 1, 2</code> correspond to <code>x</code>, <code>y</code> and <code>z</code> respectively </p>

</div>
</div>
<a class="anchor" id="a08f079774549a44b91b3d8cc6333d510"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structOFELI_1_1Point.html">Point</a>&lt;T_&gt;&amp; operator+= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; T_ &gt; &amp;&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Operator <code>+=</code> </p>
<p>Add point <code>p</code> to current instance </p>

</div>
</div>
<a class="anchor" id="a89eace35a067a04a78e6344af691d47f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structOFELI_1_1Point.html">Point</a>&lt;T_&gt;&amp; operator-= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; T_ &gt; &amp;&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Operator <code>-=</code> </p>
<p>Subtract point <code>p</code> from current instance </p>

</div>
</div>
<a class="anchor" id="af14c8e0bccc4d66024804a589de1eade"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structOFELI_1_1Point.html">Point</a>&lt;T_&gt;&amp; operator= </td>
          <td>(</td>
          <td class="paramtype">const T_ &amp;&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Operator <code>=</code> </p>
<p>Assign constant <code>a</code> to current instance coordinates </p>

</div>
</div>
<a class="anchor" id="aa56537f14630a4bd9851362203e559af"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structOFELI_1_1Point.html">Point</a>&lt;T_&gt;&amp; operator+= </td>
          <td>(</td>
          <td class="paramtype">const T_ &amp;&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Operator <code>+=</code> </p>
<p>Add constant <code>a</code> to current instance coordinates </p>

</div>
</div>
<a class="anchor" id="a9c868014bf6a1ce3caf5da7167e81e64"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structOFELI_1_1Point.html">Point</a>&lt;T_&gt;&amp; operator-= </td>
          <td>(</td>
          <td class="paramtype">const T_ &amp;&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Operator <code>-=</code> </p>
<p>Subtract constant <code>a</code> from current instance coordinates </p>

</div>
</div>
<a class="anchor" id="ad0a834a23783f1cef739e46f08b7de3c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structOFELI_1_1Point.html">Point</a>&lt;T_&gt;&amp; operator*= </td>
          <td>(</td>
          <td class="paramtype">const T_ &amp;&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Operator <code>*=</code> </p>
<p>Multiply constant <code>a</code> by current instance coordinates </p>

</div>
</div>
<a class="anchor" id="af20856693cc97ce29fa0983fea0393b8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structOFELI_1_1Point.html">Point</a>&lt;T_&gt;&amp; operator/= </td>
          <td>(</td>
          <td class="paramtype">const T_ &amp;&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Operator <code>/=</code> </p>
<p>Divide current instance coordinates by <code>a</code> </p>

</div>
</div>
<a class="anchor" id="a6bfbffd75a16c4341412f1de1e1212e8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; T_ &gt; &amp;&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Operator <code>==</code> </p>
<p>Return <code>true</code> if current instance is equal to <code>p</code>, <code>false</code> otherwise. </p>

</div>
</div>
<a class="anchor" id="aa358b827f5cbde84892c00944feecddc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; T_ &gt; &amp;&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Operator <code>!=</code> </p>
<p>Return <code>false</code> if current instance is equal to <code>p</code>, <code>true</code> otherwise. </p>

</div>
</div>
<a class="anchor" id="af279e0f0ff720ee54d6733674dfda50a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Normalize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Normalize vector. </p>
<p>Divide vector components by its 2-norm </p>

</div>
</div>
<a class="anchor" id="aaff218598fffb4cd6234600b1e11331b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool isCloseTo </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; double &gt; &amp;&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>toler</em> = <code><a class="el" href="group__Util.html#gafdb762bd8a6d2684026764bf68a48bd5">OFELI_TOLERANCE</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return <code>true</code> if current point is close to instance <code>a</code> (up to tolerance <code>toler</code>) </p>
<p>Default value for <code>toler</code> is the <code>OFELI_TOLERANCE</code> constant. </p>

</div>
</div>
<a class="anchor" id="ae8b8557aa0edc46215466767988ee8c1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">T_ operator, </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structOFELI_1_1Point.html">Point</a>&lt; T_ &gt; &amp;&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return Dot (scalar) product of two vectors. </p>
<p>A typical use of this operator is <code>double a = (p,q)</code> where <code>p</code> and <code>q</code> are 2 instances of <code>Point&lt;double&gt;</code> </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">p</td><td><a class="el" href="structOFELI_1_1Point.html" title="Defines a point with arbitrary type coordinates. ">Point</a> instance by which the current instance is multiplied </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->

</div> <!-- class text -->
</div> <!-- main menu -->
<!-- Google Search -->
<br><br>
<center>
  <div id="cse" style="width: 80%;">Loading</div>
  <script src="http://www.google.com/jsapi" type="text/javascript"></script>
  <script type="text/javascript"> 
     google.load('search', '1', {language : 'en', style : google.loader.themes.SHINY});
     google.setOnLoadCallback(function() {
        var customSearchOptions = {};  var customSearchControl = new google.search.CustomSearchControl(
        '012396140824982761142:-qrywxcfi_o', customSearchOptions);
        customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
        customSearchControl.draw('cse');
     }, true);
   </script>
   <style type="text/css">
     .gsc-control-cse {
     font-family: Verdana, sans-serif;
     border-color: #DAE0E5;
     background-color: #DAE0E5;
   }
   .gsc-control-cse .gsc-table-result { font-family: Verdana, sans-serif; }
   input.gsc-input { border-color: #B6BEC5; }
   input.gsc-search-button {
     border-color: #B6BEC5;
     background-color: #D0D1D4;
   }
   .gsc-tabHeader.gsc-tabhInactive {
     border-color: #999999;
     background-color: #EEEEEE;
   }
   .gsc-tabHeader.gsc-tabhActive {
     border-color: #999999;
     background-color: #999999;
   }
   .gsc-tabsArea { border-color: #999999; }
   .gsc-webResult.gsc-result,
   .gsc-results .gsc-imageResult {
     border-color: #FFFFFF;
     background-color: #FFFFFF;
   }
   .gsc-webResult.gsc-result:hover,
   .gsc-imageResult:hover {
     border-color: #D2D6DC;
     background-color: #EDEDED;
   }
   .gsc-webResult.gsc-result.gsc-promotion:hover {
     border-color: #D2D6DC;
     background-color: #EDEDED;
   }
   .gs-webResult.gs-result a.gs-title:link,
   .gs-webResult.gs-result a.gs-title:link b,
   .gs-imageResult a.gs-title:link,
   .gs-imageResult a.gs-title:link b { color: #0568CD; }
   .gs-webResult.gs-result a.gs-title:visited,
   .gs-webResult.gs-result a.gs-title:visited b,
   .gs-imageResult a.gs-title:visited,
   .gs-imageResult a.gs-title:visited b { color: #0568CD; }
   .gs-webResult.gs-result a.gs-title:hover,
   .gs-webResult.gs-result a.gs-title:hover b,
   .gs-imageResult a.gs-title:hover,
   .gs-imageResult a.gs-title:hover b { color: #0568CD; }
   .gs-webResult.gs-result a.gs-title:active,
   .gs-webResult.gs-result a.gs-title:active b,
   .gs-imageResult a.gs-title:active,
   .gs-imageResult a.gs-title:active b { color: #0568CD; }
   .gsc-cursor-page { color: #0568CD; }
   a.gsc-trailing-more-results:link { color: #0568CD; }
   .gs-webResult .gs-snippet,
   .gs-imageResult .gs-snippet,
   .gs-fileFormatType { color: #5F6A73; }
   .gs-webResult div.gs-visibleUrl,
   .gs-imageResult div.gs-visibleUrl { color: #5F6A73; }
   .gs-webResult div.gs-visibleUrl-short { color: #5F6A73; }
   .gs-webResult div.gs-visibleUrl-short { display: none; }
   .gs-webResult div.gs-visibleUrl-long { display: block; }
   .gs-promotion div.gs-visibleUrl-short { display: none; }
   .gs-promotion div.gs-visibleUrl-long { display: block; }
   .gsc-cursor-box { border-color: #FFFFFF; }
   .gsc-results .gsc-cursor-box .gsc-cursor-page {
      border-color: #999999;
      background-color: #FFFFFF;
      color: #0568CD;
   }
   .gsc-results .gsc-cursor-box .gsc-cursor-current-page {
      border-color: #999999;
      background-color: #999999;
      color: #0568CD;
   }
   .gsc-webResult.gsc-result.gsc-promotion {
      border-color: #D2D6DC;
      background-color: #D0D1D4;
   }
   .gsc-completion-title { color: #0568CD; }
   .gsc-completion-snippet { color: #5F6A73; }
   .gs-promotion a.gs-title:link,
   .gs-promotion a.gs-title:link *,
   .gs-promotion .gs-snippet a:link { color: #0066CC; }
   .gs-promotion a.gs-title:visited,
   .gs-promotion a.gs-title:visited *,
   .gs-promotion .gs-snippet a:visited { color: #0066CC; }
   .gs-promotion a.gs-title:hover,
   .gs-promotion a.gs-title:hover *,
   .gs-promotion .gs-snippet a:hover { color: #0066CC; }
   .gs-promotion a.gs-title:active,
   .gs-promotion a.gs-title:active *,
   .gs-promotion .gs-snippet a:active { color: #0066CC; }
   .gs-promotion .gs-snippet,
   .gs-promotion .gs-title .gs-promotion-title-right,
   .gs-promotion .gs-title .gs-promotion-title-right *  { color: #333333; }
   .gs-promotion .gs-visibleUrl,
   .gs-promotion .gs-visibleUrl-short { color: #5F6A73; }
   </style>
</center>
<!-- End of Google Search Box -->
<br><br><br></p>
<div id="foot_bar">
  Copyright &copy; 1998-2019 Rachid Touzani&nbsp;
</div>
</div> <!-- main -->
</body>
</HTML>
